package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Permission;

import java.util.List;

/**
 * @descriptions: ...
 * @author: 唐杰
 * @date: 2019/11/20  15:28
 * @version: 1.0
 */
public interface PermissionService {
    //根据id查询权限数据
    public Permission findById(Integer id);

    //根据条件分页查询
    public PageResult findPage(QueryPageBean queryPageBean);

    //添加权限数据
    public void add(Permission permission);

    //编辑权限数据
    public void edit(Permission permission);

    //根据id删除权限数据
    public void delete(Integer id);

    //查询所有权限数据
    public List<Permission> findAll();
}
